﻿namespace FinallyArchive__Application.CURDBaseService
{
    public interface IBaseService<TEntity, TEntityInputDto, TEntityOutputDto, TEntitySearchDto, Key>
        where TEntity : class,new()
        where TEntityInputDto : class, new()
        where TEntityOutputDto : class, new()
        where TEntitySearchDto : class, new()
    {
        int AddEntity(TEntityInputDto entity);
        TEntityOutputDto DelTEntity(int id);
        IQueryable<TEntityOutputDto> GetListAll();
        int  UpTEntity(TEntity user);
        TEntity InfoSearch(int id);
    }
}